home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / killall.z / killall
Encoding:
Text File  |  2001-04-17  |  4.8 KB  |  133 lines

  1.  
  2.  
  3.  
  4. kkkkiiiillllllllaaaallllllll((((1111MMMM))))                                                        kkkkiiiillllllllaaaallllllll((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      killall - kill named processes
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      kkkkiiiillllllllaaaallllllll [ [----]signal ]
  13.      kkkkiiiillllllllaaaallllllll [ ----ggggvvvv ] [ ----kkkk secs ] [ [----]signal ] [ pname ...]
  14.      kkkkiiiillllllllaaaallllllll [ ----ggggvvvv ] [ ----kkkk secs ] [ ----signame ] [ pname ...]
  15.      kkkkiiiillllllllaaaallllllll ----llll
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _k_i_l_l_a_l_l sends a signal to a set of processes or process groups specified
  19.      by _p_n_a_m_e(s).  It is similar to _k_i_l_l(1), except that it allows processes
  20.      to be specified by name and has special options used by _s_h_u_t_d_o_w_n(1M).
  21.  
  22.      When no processes are specified, _k_i_l_l_a_l_l terminates all processes that
  23.      are not in the same process group as the caller.  This form is for use in
  24.      shutting down the system and is only available to the superuser.
  25.  
  26.      The options to _k_i_l_l_a_l_l are:
  27.  
  28.      _s_i_g_n_a_l, ----_s_i_g_n_a_l
  29.                Specifies the signal number.  The minus (----) is required if
  30.                _p_n_a_m_e looks like a signal number.  If no signal value is
  31.                specified, a default of 9999 (KILL) is used.
  32.  
  33.      _p_n_a_m_e     When a process is specified with _p_n_a_m_e, _k_i_l_l_a_l_l sends _s_i_g_n_a_l to
  34.                all processes matching that name.  This form is available to
  35.                all users provided that their user ID matches the real, saved,
  36.                or effective user ID of the receiving process.  The signal
  37.                number must be preceded by a minus (----) if _p_n_a_m_e looks like a
  38.                signal number.
  39.  
  40.      _s_i_g_n_a_m_e   A mnemonic name for the signal can be used; see the ----llll option.
  41.  
  42.      ----gggg        Causes the signal to be sent to the named processes' entire
  43.                process group.  In this form, the signal number should be
  44.                preceded by ---- in order to disambiguate it from a process name.
  45.  
  46.      ----kkkk _s_e_c_s   Allows the user to specify a maximum time to die for a process.
  47.                With this option, an argument specifying the maximum number of
  48.                seconds to wait for a process to die is given.  If after
  49.                delivery of the specified signal (which defaults to SIGTERM
  50.                when using the ----kkkk option), _k_i_l_l_a_l_l waits for either the process
  51.                to die or for the time specified by _s_e_c_s to elapse.  If the
  52.                process does not die in the allotted time, the process is sent
  53.                SIGKILL.
  54.  
  55.      ----llll        Lists the signal names (see _k_i_l_l(1) for more information about
  56.                signal naming).  For example,
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. kkkkiiiillllllllaaaallllllll((((1111MMMM))))                                                        kkkkiiiillllllllaaaallllllll((((1111MMMM))))
  71.  
  72.  
  73.  
  74.                    _kkkk_iiii_llll_llll_aaaa_llll_llll _1111_6666 _mmmm_yyyy_pppp_rrrr_oooo_cccc
  75.                     _kkkk_iiii_llll_llll_aaaa_llll_llll _----_1111_6666 _mmmm_yyyy_pppp_rrrr_oooo_cccc
  76.                     _kkkk_iiii_llll_llll_aaaa_llll_llll _----_UUUU_SSSS_RRRR_1111 _mmmm_yyyy_pppp_rrrr_oooo_cccc
  77.  
  78.                are equivalent.
  79.  
  80.      ----vvvv        Reports if the signal was successfully sent.
  81.  
  82.      _k_i_l_l_a_l_l can be quite useful for killing a process without knowing its
  83.      process ID.  It can be used to stop a run-away user program without
  84.      having to wait for _p_s(1) to find its process ID.  It can be particularly
  85.      useful in scripts, because it makes it unnecessary to run the output of
  86.      _p_s(1) through _g_r_e_p(1) and then through _s_e_d(1) or _a_w_k(1).
  87.  
  88. FFFFIIIILLLLEEEESSSS
  89.      /etc/shutdown
  90.  
  91. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  92.      fuser(1M), kill(1), ps(1), shutdown(1M), signal(2).
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.